/****************************************************************************
**
** Copyright (C) .  All rights reserved. 
**
****************************************************************************/

#ifndef DEF_BASE_H
#define DEF_BASE_H


//==========================================================================================//
//																							//
// Definition																				//
//																							//
//==========================================================================================//

#define DEFAULT_FONT _T("Tahoma")
//#define DEFAULT_FONT _T("Verdana")


const LOGFONT g_FontProgramInfo = {12, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE, DEFAULT_CHARSET,
								   OUT_DEFAULT_PRECIS, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, DEFAULT_FONT};

const LOGFONT g_FontSearchOpt   = {13, 0, 0, 0, FW_THIN, FALSE, FALSE, FALSE, DEFAULT_CHARSET,
							       OUT_DEFAULT_PRECIS, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, DEFAULT_FONT};

const LOGFONT g_FontTimeSymbol  = {20, 0, 0, 0, FW_BOLD, FALSE, FALSE, FALSE, DEFAULT_CHARSET,
								   OUT_DEFAULT_PRECIS, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, DEFAULT_FONT};

const LOGFONT g_FontSpeedmeter1 = {30, 0, 0, 0, FW_BOLD, TRUE, FALSE, FALSE, DEFAULT_CHARSET,
								   OUT_DEFAULT_PRECIS, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, DEFAULT_FONT};

const LOGFONT g_FontSpeedmeter2 = {16, 0, 0, 0, FW_BOLD, FALSE, FALSE, FALSE, DEFAULT_CHARSET,
								   OUT_DEFAULT_PRECIS, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, DEFAULT_FONT};

const LOGFONT g_FontGps			= {16, 0, 0, 0, FW_BOLD, FALSE, FALSE, FALSE, DEFAULT_CHARSET,
							       OUT_DEFAULT_PRECIS, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, DEFAULT_FONT};

const LOGFONT g_FontGpsGraph   = {14, 0, 0, 0, FW_BOLD, FALSE, FALSE, FALSE, DEFAULT_CHARSET,
									OUT_DEFAULT_PRECIS, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, DEFAULT_FONT};

#define SAFE_DELETE(p)			{ if(p) { delete (p);		(p)=NULL; } }
#define SAFE_ARRAY_DELETE(p)	{ if(p) { delete[] (p);		(p)=NULL; } }

//#define COLOR_WHITE				RGB(255,255,255)

#define FILESELECT_FILTER		_T("Blackbox Media File(*.avx;*.avs)\0*.avx;*.avs\0Index File(*.avx)\0*.avx\0Block File(*.avs)\0*.avs\0")

#define COLOR_DLG_BACKGROUND	RGB(252, 252, 253)
#define COLOR_DLG_WHITE			RGB(255, 255, 255)
#define COLOR_NORMAL_TEXT		RGB(0, 0, 0)


// User Defined Message
enum
{
	WM_CTL_MESSAGE = WM_USER+1,				// Control Message
	WM_PLB_MESSAGE = WM_USER+2,
	WM_GRAPHNOTIFY = WM_USER+13,
	WM_LIST_MSG	   = WM_USER+15,
	WM_LIST_CHECK  = WM_USER+16,
	WM_TIME_LIST_CHECK_STATUS,
	WM_EVENT_LIST_CHECK_STATUS,
	WM_TIME_BAR_HOLD = WM_USER+32,
	WM_TIME_BAR_RELEASE,
	WM_TIME_BAR_SEARCH,
	WM_TIME_BAR_SEARCH_BEGIN,
	WM_USER_DISPLAYCHANGE,
	WM_USER_COUNT
};

//message for setup
#define WM_REFRESH_SKIN			(WM_USER+100)
#define WM_REFRESH_LANG			(WM_USER+101)
#define WM_CREATE_CONFIG		(WM_USER+102)
#define WM_VIEWER_SETUP			(WM_USER+103)

#endif // DEF_BASE_H